package com.example.webrtcproject;

import com.google.gson.Gson;

import org.webrtc.IceCandidate;
import org.webrtc.SessionDescription;

import androidx.annotation.NonNull;

/**
 * @作者 mazhuang
 * @创建时间 2020/1/2 14:22
 * @文件描述:
 */
public class WebMessage {
    private String id;
    private int label;
    private SessionDescription sessionDescription;
    private String eventname;
    private String socketId;
//    private IceCandidate iceCandidate;
    private String iceCandidate;
    private boolean isFront;
//    public IceCandidate getIceCandidate() {
//        return iceCandidate;
//    }
//
//    public void setIceCandidate(IceCandidate iceCandidate) {
//        this.iceCandidate = iceCandidate;
//    }

    public String getIceCandidate() {
        return iceCandidate;
    }

    public void setIceCandidate(String iceCandidate) {
        this.iceCandidate = iceCandidate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    public SessionDescription getSessionDescription() {
        return sessionDescription;
    }

    public void setSessionDescription(SessionDescription sessionDescription) {
        this.sessionDescription = sessionDescription;
    }

    public String getEventname() {
        return eventname;
    }

    public void setEventname(String eventname) {
        this.eventname = eventname;
    }

    public String getSocketId() {
        return socketId;
    }

    public void setSocketId(String socketId) {
        this.socketId = socketId;
    }

    public boolean getFront() {
        return isFront;
    }

    public void setFront(boolean front) {
        isFront = front;
    }

    @NonNull
    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
